package com.appbee.core.shared.text;

public class SepString
{
	private StringBuffer sb;
	private String sep;
	
	public SepString()
	{
		this(" ");
	}
	public SepString(String sep)
	{
		this.sep = sep;
	}
	
	public void add(String str)
	{
		if(sb==null) sb = new StringBuffer();
		else sb.append(sep);
		sb.append(str);
	}
	
	public String toString()
	{
		return sb==null?"":sb.toString();
	}
	
	public boolean isEmpty()
	{
		return sb==null;
	}
}
